<?php
namespace app\msgapi\controller;

use app\BaseController;
use app\msgapi\service\HuihuaGroupChatService;
use app\Request;

/**
 * 会话群组控制器
 */
class HsgroupChat extends BaseController
{
    protected HuihuaGroupChatService $service;
    public function __construct(HuihuaGroupChatService $service)
    {
        parent::__construct(app());
        $this->service = $service;
    }

    /**获取群组列表
     * @param Request $request
     * @return \think\response\Json
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getGroupChatLst(Request $request){
        $data = $request->only(['userid','groupname','page','limit'],'post');
        return $this->service->getGroupChatLst($data,$request->admin_groupid,$request->adminid);
    }











}